package com.qqtech.qquan.order.enums;

public enum OrderBaseOrderStatusCancelTypeDictEnum {
	BUYERCANCEL(1), SELLERCANCEL(2), AUTO(3), ADMINCANCEL(4);
	int code;

	OrderBaseOrderStatusCancelTypeDictEnum(int code) {
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public static boolean isInScope(Integer code) {
		if (code == null) {
			return false;
		}
		OrderBaseOrderStatusCancelTypeDictEnum[] arrEnum = OrderBaseOrderStatusCancelTypeDictEnum.values();
		for (OrderBaseOrderStatusCancelTypeDictEnum e : arrEnum) {
			if (e.code == code.intValue()) {
				return true;
			}
		}
		return false;
	}
}
